#include "precomp.h"

#ifndef GUN_H
#define GUN_H

#include "Bullet.h"

#define HAND_GUN 0
#define M4A1 1

class Gun{
public:
	Gun();

	Gun(bool automatical, int damage, int max_bullets, int max_clips, float range, float shoot_interval = 500);

	void reload();

	float get_range();

	int get_damage();

	int get_bullets();

	int get_clips();

	bool is_shooting();

	void set_shooting(bool shooting);

	bool shoot();

	static int gun_types;

private:
	bool _automatical;
	bool _shooting;

	int _damage;
	float _range;

	int _bullets, _clips;
	int _max_bullets, _max_clips;

	float _shoot_interval;
	float _last_shoot_time;
};

#endif